package com.tonyodev.fetchapp.fetch2core;

import com.tonyodev.fetch2core.HandlerWrapper;

import org.junit.Before;
import org.junit.Test;

public class HandlerWrapperTest {
    HandlerWrapper handlerWrapper;

    @Before
    public void setUp() throws Exception {
        handlerWrapper = new HandlerWrapper("test", null);
    }

    @Test
    public void post() {
        handlerWrapper.post(new Runnable() {
            @Override
            public void run() {
                System.out.println("text run");
            }
        });
    }

    @Test
    public void postDelayed() {
        handlerWrapper.postDelayed(new Runnable() {
            @Override
            public void run() {
                System.out.println("text run postDelayed ");
            }
        }, 0);
    }

    @Test
    public void close() {
        handlerWrapper.close();
    }


}